/* Wasson An
 * This class just sets up the JFrame
 */

package catandmouse;

import javax.swing.JFrame;

public class GUI {
	
	private static JFrame frame; //the main frame
	private SingleGamePanel gPanel; //the panel holding the game
	
	
	//0 parameter constructor setting up and running the GUI
	public GUI(){
		
		frame = new JFrame();
		frame.setSize(1000, 720);

		gPanel = new SingleGamePanel();
		frame.add(gPanel);
		
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	    frame.setVisible(true);
	}//default constructor
	
	
	//returns the width of the frame
	public static int getWidth(){
		
		return frame.getWidth();
	}//getWidth
	
	
	//returns the height of the frame
	public static int getHeight(){
		
		return frame.getHeight();
	}//getHeight
}//GUI
